<!-- apps/main/src/views/Dashboard/index.vue -->
<template>
  <div class="dashboard">
    <h1>主应用仪表盘</h1>
    <el-button type="primary" @click="goToApp1">跳转到微应用 App1</el-button>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
import { ElButton } from "element-plus";

const router = useRouter();

const goToApp1 = () => {
  router.push("/app1");
};
</script>

<style scoped>
.dashboard {
  padding: 20px;
}
</style>
